
import java.util.Scanner;
class Money{
    public int yuan;
    public int jiao;
    public int fen;

    Money(double mount) {
    this.yuan = (int)mount;
    this.jiao = (int)((mount - yuan)*10);
    this.fen = (int)(mount*100)%10;
    }

    void show(){
        System.out.println(yuan+"元"+fen+"分"+jiao+"角");
    }
}
public class Haha {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double mount = input.nextDouble();
        input.close();
        Money m = new Money(mount);
        m.show();
    }
}
